package com.spring.datasource.util;

import com.zaxxer.hikari.HikariDataSource;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 实际数据源配置
 */
@Component
@Data
@ConfigurationProperties(prefix = "hikari")
public class DBProperties {
    private HikariDataSource sms;
    private HikariDataSource job;
	public HikariDataSource getSms() {
		return sms;
	}
	public void setSms(HikariDataSource sms) {
		this.sms = sms;
	}
	public HikariDataSource getJob() {
		return job;
	}
	public void setJob(HikariDataSource job) {
		this.job = job;
	}
    
}